home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-13
/
amac44d.zip
/
DSIZ13.QM
< prev
next >
Wrap
Text File
|
1992-04-26
|
9KB
|
177 lines
* DSIZ13.QM
* Sort Directory Sizes in Descending Order
* Written by Tom Hogshead
* 4/26/92
*
* Key Subfile Description Bytes
* ===== ============= ========================================= =======
*
* Sort Directory Sizes in Descending Order,
* @(1) {e:\up\dsiz@1} | - RIGHT Justify Number of Files' Column 185 |new
* @(2) {e:\up\dsiz@2} | - LEFT Justify Number of Files' Column 85 |chg
*
*--eoi
* DESCRIPTION
* ------------
* DSIZxx.QM are macros to list all directories in a current or a
* specified drive, sorted by directory size in descending order. The
* number of files in each directory is also shown.
* NOTE
* -----
* 1) DX.EXE Directory Extended is also required and can be found
* in AMAC-PRG.ZIP.
* 2) These macros must only be run from the command line using
* either dsiz1.bat or dsiz2.bat, which must reside in current
* directory or in the path.
* 3) These macros requires QEdit v2.15, but can be modified to
* work with QEdit v2.10 by removing the six commands
* setscreenoff, savesettings, setinsmode, setwordwrapmode,
* togglewordwrap and restoresettings, and invoking the macro
* with Insert ON and Word Wrap OFF.
* 4) The unkill buffer MUST be set >0 with Qconfig.
* 5) Total length of the "deepest and longest" directory name must
* not exceed 33 characters, e.g.
* "c:\aaaaa\ccccc\eeeee\ooooo\qqq\rr"
* Macro truncates more than 33 characters.
* 6) Empty directories are not listed.
* 7) Contents of dsiz1.bat using @1 in dsiz@1.qm are:
* ┌───────────────────────────────────────────────────────────────────────┐
* │: dsiz1.bat 4/23/92 │
* │: To run this batch file anywhere, change "Edsiz@1.mac" to: │
* │: "E[d:\path\]dsiz@1.mac" │
* │: where [d:\path\] is [drive:\directory\] for dsiz@1.mac location.│
* │: %1 = Drive with colon. Uses current drive if %1 is not specified. │
* │: Requires DX.EXE (Directory Extended) and Q.EXE in path. │
* │: Change c:\ to desired dsiz.ls location, preferably a ram drive. │
* │ │
* │ @echo off │
* │ cls │
* │ DX.EXE %1\ //t/st:1/he:1/at:hsd-/ff/ca:l/out:c:\dsiz.ls │
* │ Q.EXE c:\dsiz.ls /Edsiz@1.mac │
* └───────────────────────────────────────────────────────────────────────┘
* 8) Contents of dsiz2.bat using @2 in dsiz@2.qm are:
* ┌───────────────────────────────────────────────────────────────────────┐
* │: dsiz2.bat 4/23/92 │
* │: To run this batch file anywhere, change "Edsiz@2.mac" to: │
* │: "E[d:\path\]dsiz@2.mac" │
* │: where [d:\path\] is [drive:\directory\] for dsiz@2.mac location.│
* │: %1 = Drive with colon. Uses current drive if %1 is not specified. │
* │: Requires DX.EXE (Directory Extended) and Q.EXE in path. │
* │: Change c:\ to desired dsiz.ls location, preferably a ram drive. │
* │ │
* │ @echo off │
* │ cls │
* │ DX.EXE %1\ //t/st:1/he:1/at:hsd-/ff/ca:l/out:c:\dsiz.ls │
* │ Q.EXE c:\dsiz.ls /Edsiz@2.mac │
* └───────────────────────────────────────────────────────────────────────┘
* M A C R O S
* ----------------------------------------------------------------------
* @(1) Directory Sizes Sorted by Size in Descending Order,
* RIGHT Justify Number of Files' Column
* ----------------------------------------------------------------------
* See dsiz@1.qm for @1.
* This macro lists all directories in a current or a specified drive,
* sorted by directory size in descending order. The number of files in
* each directory is also shown. The macro can be invoked only at the
* command line, not while editing, by running the batch file dsiz1.bat
* which must be in the path or current directory.
* SYNTAX: dsiz1 [drive:] <enter>
* After the directory list is saved as [drive:]\dsiz.lst and loaded for
* viewing, the temporary file c:\dsiz.ls (no "t" extension) is deleted.
* Macro @1 differs from @2 in that it RIGHT justifies the number of
* files' column.
* Output of dsiz1.bat on my G: drive with @1: Note
* ------------------------------------------- RIGHT Justification
* Volume [G:MINISCRB_2] created: 92-Jan-20 14:34:16; vvv
* Directory of [g:\qpro\] 2,214,991 bytes in 54 files
* Directory of [g:\nu\] 1,882,085 bytes in 45 files
* Directory of [g:\qe\] 1,400,421 bytes in 81 files
* Directory of [g:\pcplus\] 1,319,337 bytes in 158 files
* Directory of [g:\slmr\] 301,762 bytes in 15 files
* < Lines omitted >
* Directory of [g:\dos\] 166,684 bytes in 19 files
* Directory of [g:\pckwik\] 118,310 bytes in 13 files
* Directory of [g:\] 2,043 bytes in 1 file
* Directory of [g:\ibm\] 0 bytes in 1 file
* 14,310,447 bytes in 1,368 files. 15,069,184 bytes allocated (5% slack).
*
* ----------------------------------------------------------------------
* @(2) Directory Sizes Sorted by Size in Descending Order,
* LEFT Justify Number of Files' Column
* ----------------------------------------------------------------------
* See dsiz@2.qm for @2.
* This macro lists all directories in a current or a specified drive,
* sorted by directory size in descending order. The number of files in
* each directory is also shown. The macro can be invoked only at the
* command line, not while editing, by running the batch file dsiz2.bat
* which must be in the path or current directory.
* SYNTAX: dsiz2 [drive:] <enter>
* After the directory list is saved as [drive:]\dsiz.lst and loaded for
* viewing, the temporary file c:\dsiz.ls (no "t" extension) is deleted.
* Macro @2 differs from @1 in that it LEFT justifies the number of
* files' column.
* Output of dsiz2.bat on my G: drive with @2 Note
* ------------------------------------------- LEFT Justification
* Volume [G:MINISCRB_2] created: 92-Jan-20 14:34:16; vvv
* Directory of [g:\qpro\] 2,214,991 bytes in 54 files
* Directory of [g:\nu\] 1,882,085 bytes in 45 files
* Directory of [g:\qe\] 1,400,421 bytes in 81 files
* Directory of [g:\pcplus\] 1,319,337 bytes in 158 files
* Directory of [g:\slmr\] 301,762 bytes in 15 files
* < Lines omitted >
* Directory of [g:\dos\] 166,684 bytes in 19 files
* Directory of [g:\pckwik\] 118,310 bytes in 13 files
* Directory of [g:\] 2,043 bytes in 1 file
* Directory of [g:\ibm\] 0 bytes in 1 file
* 14,310,447 bytes in 1,368 files. 15,069,184 bytes allocated (5% slack).
@0 macrobegin begline * Dummy to make this a txtfile
* Version History
* ----------------
* 1.1 - Prior version did not work if QEdit was set to insert 9/15/91
* line blocks below the cursor line. This version works
* for all Qconfig settings and has the option to use the
* SetScreenOff command in v2.15.
* 1.2 - QEdit 2.15 required for faster smoother operation. 10/11/91
* - In AMAC42.ZIP. 3/28/92
* 1.3 - Changed descend sort routine to not be limited to 4/22/92
* 300 directory entries. Also is much faster.
* - Added @1 to right justify number of files' column. 4/23/92
* - Made subfiles dsiz@1.qm and dsiz@2.qm. 4/24/92
* - Added dsiz1.bat and dsiz2.bat. Removed dsiz.bat. 4/24/92
*
*
*
*
*
*
*-- eof